package com.ruoyi.web.controller.example;

import com.ruoyi.common.annotation.Anonymous;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Anonymous
@RestController
@RequestMapping("/first")
@Api(tags = "测试控制器")
public class FirstController {

    @Value("${ruoyi.name}")
    private  String ruoyiName;
    @Value("${ruoyi.version}")
    private  String ruoyiVersion;

    @ApiOperation("hello方法")
    @GetMapping("/hello")
    public String first(){
        return "ruoyiname:" + ruoyiName + "     Version:" + ruoyiVersion;
    }

    @ApiOperation("hello方法2")
    @GetMapping("/hello2")
    public String second(){
        return "hello lengjialun";
    }




}
